package com.lzdongrui.system.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.lzdongrui.common.annotation.Excel;
import com.lzdongrui.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 通知记录对象 notification
 * 
 * @author ruoyi
 * @date 2023-06-12
 */
@Data
public class Notification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知id */
    private Long id;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String noticeContent;

    /** 查看人 */
    @Excel(name = "查看人")
    private Long viewerUserId;

    /** 查看状态 */
    @Excel(name = "查看状态")
    private Integer status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNoticeContent(String noticeContent) 
    {
        this.noticeContent = noticeContent;
    }

    public String getNoticeContent() 
    {
        return noticeContent;
    }
    public void setViewerUserId(Long viewerUserId) 
    {
        this.viewerUserId = viewerUserId;
    }

    public Long getViewerUserId() 
    {
        return viewerUserId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("noticeContent", getNoticeContent())
            .append("viewerUserId", getViewerUserId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
